home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / files / seek < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.4 KB  |  29 lines

  1.           seek fileId offset ?origin?
  2.                Change  the  current  access  position for fileId.  The
  3.                offset and origin arguments  specify  the  position  at
  4.                which  the  next  read  or write will occur for fileId.
  5.                Offset must be a number (which  may  be  negative)  and
  6.                origin must be one of the following:
  7.  
  8.                start
  9.                     The  new access position will be origin bytes from
  10.                     the start of the file.
  11.  
  12.                current
  13.                     The  new access position will be origin bytes from
  14.                     the current access  position;  a  negative  origin
  15.                     moves the access position backwards in the file.
  16.  
  17.                end
  18.                     The  new access position will be origin bytes from
  19.                     the end of the file.  A negative origin places the
  20.                     access  position  before  the  end-of-file,  and a
  21.                     positive origin places the access  position  after
  22.                     the end-of-file.
  23.  
  24.                The origin argument defaults  to  start.   FileId  must
  25.                have  been  the  return  value  from a previous call to
  26.                open, or it may be stdin, stdout, or stderr to refer to
  27.                one of the standard I/O channels.  This command returns
  28.                an empty string.
  29.